<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>

<body>
    <script type="text/javascript" src="myjavascript.js"></script>
    <h1>第一个javascript脚本</h1>

    <script type="text/javascript">
        // alert 弹出框
        /*多行注释*/
        alert("hello javascript");
        alert('hello js');

        // 打印日志
        console.log("hello world");

        var a = 1;
        var A = 1;
    </script>
</body>

</html>